package manager

import (
	"github.com/gin-gonic/gin"
)

type HealthManagerRouter struct{}

// InitHealthManagerRouter 初始化HealthManager路由信息
func (h *HealthManagerRouter) InitHealthManagerRouter(Router *gin.RouterGroup, PubRouter *gin.RouterGroup) {
	//healthManagerRouter := Router.Group("manager").Use(middleware.OperationRecord())
	healthManagerRouterWithoutRecord := Router.Group("manager")
	baseRouterPub := PubRouter.Group("manager")
	{
		baseRouterPub.POST("register", healthManagerApi.Register)                 // 注册
		baseRouterPub.POST("passwordLogin", healthManagerApi.PasswordLogin)       // 密码登陆
		baseRouterPub.POST("codeLogin", healthManagerApi.CodeLogin)               // 验证码登陆
		baseRouterPub.POST("retrievePassword", healthManagerApi.RetrievePassword) // 找回密码
	}
	{
		healthManagerRouterWithoutRecord.GET("getManagerInfo", healthManagerApi.GetManagerInfo)  // 获取健管师信息【健管师端】
		healthManagerRouterWithoutRecord.PUT("updateManager", healthManagerApi.UpdateManager)    // 修改健管师信息【健管师端】
		healthManagerRouterWithoutRecord.POST("changePassword", healthManagerApi.ChangePassword) // 修改密码【健管师端】
		healthManagerRouterWithoutRecord.GET("getMyManager", healthManagerApi.GetMyManager)      // 获取我的健管师【用户端】
	}
}
